package com.lhs.Controller;

import cn.dev33.satoken.annotation.SaCheckRole;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lhs.Page.PageParam;
import com.lhs.Page.PageResult;
import com.lhs.Result.Result;
import com.lhs.VO.blog.ReviewVO;
import com.lhs.entity.blog.blog_review;
import com.lhs.service.blog_reviewService;
import jakarta.websocket.server.PathParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("blog/blog_review")
public class blog_reviewController {

    @Autowired
    private blog_reviewService  BlogReviewService;


    // 查询所有为待审核的博客
    @GetMapping("/admin/getAllReviewBlog")
    public Result<Page<ReviewVO>> getAllReviewBlog(PageParam pageParam){
        if (pageParam == null){
            pageParam = new PageParam();
        }
        return BlogReviewService.getAllReviewBlog(pageParam);
    }


}
